package cn.iocoder.yudao.module.product.mq.message;

import lombok.Data;

import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

/**
 * 商品信息 消息
 *
 * @author 徐煜东
 */
@Data
public class ProductInfoSendMessage  {
    public static final String TOPIC = "PRODUCT_ORDER_VIEW_RESPONSE_TOPIC"; // 重点：需要增加消息对应的 Topic

    @NotNull(message = "请求ID")
    private String requestId;

    @NotNull(message = "产品ID")
    private Long productId;

    @NotNull(message = "商品名称")
    private String name;

    private String description;

    @NotNull(message = "商品价格")
    private BigDecimal price;

    @NotNull(message = "上架状态")
    private Integer upsalaStatus; //参见 UpsalaStatusEnum 枚举

}
